﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace OnlineCatalog
{
    [MetadataType(typeof(CategoryMetadata))]
    partial class Category
    {
    }
    public class CategoryMetadata
    {
        [Required]
        [MaxLength(5)]
        [Display(Name = "หมวดหมู")]
        public string Name { get; set; }
    }
}